#include<stdio.h>

int main(){
    int p1;
    do{
        p1 = fork();
        if(p1==0){
            printf("this is in child process\n");
        }
        else{
            printf("this is in father process\n");
        }
    }while(p1==-1);
}
